package com.ruicar.afs.cloud.workflow.greatwall.exception;

import lombok.Data;
import org.springframework.http.HttpStatus;

@Data
public class FlowProcessException extends RuntimeException {

    public FlowProcessException(HttpStatus httpStatus, String rtnMessage) {
        this.httpStatus = httpStatus;
        this.rtnMessage = rtnMessage;
    }

    public FlowProcessException(String message, Throwable cause, HttpStatus httpStatus, String rtnMessage) {
        super(message, cause);
        this.httpStatus = httpStatus;
        this.rtnMessage = rtnMessage;
    }

    private HttpStatus httpStatus;
    private String rtnMessage;
}
